import request from "@/api/index"

export default {
    //添加
    add(params) {
        return request.post("/health/ncDiseaseRecords/add", {
            ...params
        })
    },
    //继续处理
    addAgain(params) {
        return request.post("/health/ncDiseaseRecords/continueAdd", {
            ...params
        })
    },
    
    //编辑
    edit(params) {
        return request.post("/health/ncDiseaseRecords/edit", {
            ...params
        })
    },
    //批量删除
    delListById(idList) {
        return request.get("/health/ncDiseaseRecords/delListById", { idList })
    },
    //条件查询
    queryByCondition(params) {
        return request.post("/health/ncDiseaseRecords/queryByCondition", {
            ...params
        })
    },
    //分页查询
    queryPageByCondition(params) {
        return request.post("/health/ncDiseaseRecords/queryPageByCondition", {
            ...params
        })
    },

    //用药详情
    diseaseRecordsDetail(params) {
        return request.post("/health/ncDiseaseRecordsDetail/queryByCondition", {
            ...params
        })
    },
    //疾病完成
    completeDisease(diseaseRecordsId){
        return request.get("/health/ncDiseaseRecords/completeDiseaseRecord", { diseaseRecordsId })
    },
    //用药详情删除
    detailDel(id){
        return request.get("/health/ncDiseaseRecordsDetail/delById", { id })
    },
    //用药详情编辑
    editDetailDel(params){
        return request.post("/health/ncDiseaseRecordsDetail/edit", {
            ...params
        })
    },
    //直鱼趋势 （用药和直鱼情况的对比）
    deadCount(diseaseRecordsId){
        return request.get("/health/ncDiseaseRecords/deadCount", { diseaseRecordsId })
    }
    
}
